export const table1Columns = [
    {
        title: '头像',
        key: 'photo',
        align: 'center',
        width: 100,
        render: (h, params) => {
            return h('div', {
                attrs: {
                    style: 'width: 50px;height: 50px;'
                },
            }, [
                h('img', {
                    props: {
                        type: 'primary',
                        size: 'small'
                    },
                    attrs: {
                        src: params.row.photo, style: 'width: 40px;height: 40px;border-radius: 2px;margin-top:5px;'
                    },
                    style: {
                    },
                }),
            ]);
        }
    },
    {
        title: '用户昵称',
        key: 'username',
        align: 'center'
    },
    {
        title: '手机',
        key: 'phone',
        align: 'center'
    },
    {
        title: '状态',
        key: 'state',
        align: 'center',
        render: (h, params) => {
        const row = params.row
        const state = row.state === 1 ? '正常' : row.state === 0 ? '冻结' : '未知'
        return h('Button', {
            props: {
              type: 'default',
              size: 'small'
            }
        }, state);
        }
    },
    {
        title: '操作',
        align: 'center',
        key: 'handle',
        handle: ['edit','staet']
    }
];
